import 'package:flutter/material.dart';
import 'package:wanchong/app/im/chart.dart';

class StorePost extends StatefulWidget {
  final int id;
  StorePost({Key key, this.id}) : super(key: key);
  @override
  _StorePostState createState() => _StorePostState();
}

class _StorePostState extends State<StorePost> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        elevation: 0.0,
      ),
      body: Center(
        child: RaisedButton(
          onPressed: () {
            Navigator.of(context).push(MaterialPageRoute(builder: (BuildContext context)=>ImChat(nick: "yyang",),),);
          },
          child: Text("发起会话"),
        ),
      ),
    );
  }
}
